#!/usr/bin/python3
#-*- coding: UTF-8 -*-
"""
字典(Dictionaries):

"""
tel = {'jack': 4098, 'sape': 4139}
tel['guido'] = 4127
print(tel)
del tel['sape']
tel['irv'] = 4127
print(tel)
tel['jack'] = 4099
print(tel)
print(list(tel))
print(sorted(tel))
print('guido' in tel)
print('jack' not in tel)
dict([('sape', 4139), ('guido', 4127), ('jack', 4098)])
print({x: x**2 for x in (2, 4, 6)})
print(dict(sape=4139, guido=4127, jack=4098))

